using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class StateExitReset : StateMachineBehaviour
{

    private SpriteRenderer spriteRenderer;

    public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        spriteRenderer = GameObject.FindGameObjectWithTag("TiGa").GetComponent<SpriteRenderer>();
        Material material = spriteRenderer.material;
        for (int i = 0; i < 4; i++)
        {
            material.SetColor("_Color" + (i + 1) + "in", new Color(1,1,1));
            material.SetColor("_Color" + (i + 1) + "out", new Color(1,1,1));
        }

        //animator.speed = 1;
    }
}
